package no.eirikb.bomberman.shared.clientcommand;

import no.eirikb.bomberman.applet.game.Bomb;
import no.eirikb.bomberman.shared.Game;
import no.eirikb.bomberman.shared.User;

/**
 *
 * @author eirikb
 */
public class BombCreateEvent extends ClientEvent {

    private Bomb bomb;

    public BombCreateEvent(Bomb bomb) {
        this.bomb = bomb;
    }

    public void execute(Game game) {
        game.addBomb(bomb);
    }

    public void execute(User user) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
